package com.diaohaiwen.remoting.basic.account;

import com.diaohaiwen.common.constant.ServiceConstant;
import com.diaohaiwen.common.obj.page.CurrentPageDto;
import com.diaohaiwen.common.obj.page.CurrentPageVo;
import com.diaohaiwen.framework.openapi.config.OpenFeignConfig;
import com.diaohaiwen.remoting.basic.account.obj.AccountVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 刁海文
 * @since 2023/7/18 22:02
 * @Remark
 */
@RequestMapping("/account")
@FeignClient(name = ServiceConstant.account, configuration = OpenFeignConfig.class)
public interface RemoteAccountService {

    @GetMapping
    CurrentPageVo<AccountVo> currentPage(@SpringQueryMap CurrentPageDto page);

}
